

package com.hazelcast.internal.config;

import com.hazelcast.config.ListenerConfig;

import javax.annotation.Nonnull;
import java.util.EventListener;

/**
 * Contains the configuration for a Listener.
 */
public class ListenerConfigReadOnly extends ListenerConfig {

    public ListenerConfigReadOnly(ListenerConfig config) {
        super(config);
    }

    @Override
    public ListenerConfig setClassName(@Nonnull String className) {
        throw new UnsupportedOperationException("This config is read-only");
    }

    @Override
    public ListenerConfig setImplementation(EventListener implementation) {
        throw new UnsupportedOperationException("This config is read-only");
    }
}
